package br.unb.fga.view;

import java.awt.*;

import javax.swing.*;


public class ArquivoFrame extends JPanel {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JLabel label1,label2;
	private JButton btMapear;
	private JTextField tfTexto;
	private TextArea textArea1;
	private JPanel panel1;
	

	
	public JLabel getLabel1() {
		return label1;
	}

	public void setLabel1(JLabel label1) {
		this.label1 = label1;
	}

	public JLabel getLabel2() {
		return label2;
	}

	public void setLabel2(JLabel label2) {
		this.label2 = label2;
	}

	public JButton getBtMapear() {
		return btMapear;
	}

	public void setBtMapear(JButton btMapear) {
		this.btMapear = btMapear;
	}

	public JTextField getTfTexto() {
		return tfTexto;
	}

	public void setTfTexto(JTextField tfTexto) {
		this.tfTexto = tfTexto;
	}

	public TextArea getTextArea1() {
		return textArea1;
	}

	public void setTextArea1(TextArea textArea1) {
		this.textArea1 = textArea1;
	}

	public JPanel getPanel1() {
		return panel1;
	}

	public void setPanel1(JPanel panel1) {
		this.panel1 = panel1;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public ArquivoFrame(){

		this.setBackground(new Color(150,150,150));
		this.setLayout(new BorderLayout());
		
		label1 = new JLabel("Texto a ser editado: ");
		label2 = new JLabel("Status: ");
		label1.setForeground(Color.black);
		label2.setForeground(Color.black);

		btMapear = new JButton("Mapear");		
		
		tfTexto = new JTextField(35);
		tfTexto.setForeground(Color.red);
		tfTexto.setEditable(false);
		
		panel1 = new JPanel();
		panel1.setLayout(new GridLayout(3,1));
		panel1.add(btMapear);					
		panel1.add(label2);					
		panel1.add(tfTexto);
		
		textArea1 = new TextArea(32,138);
		textArea1 .setEditable(false);
		textArea1 .setBackground(Color.WHITE);

		this.add("North",label1);
		this.add("Center",textArea1);
		this.add("South",panel1);
		
	}

}
